package com.hedl.classroom.base.config;

/**
 * swagger配置类
 */
//@Configuration
//@EnableSwagger2WebMvc
public class SwaggerConfig {
/*
    @Bean
    public Docket dockerBean() {
        //指定使用Swagger2规范
        Docket docket = new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(new ApiInfoBuilder()
                        .title("在线学习微服务")
                        //简介
                        .description("在线学习微服务接口")
                        //服务Url
                        .termsOfServiceUrl("我不知道，你别问我...")
                        //作者，host，邮箱
                        .contact(new Contact("admin","localhost:63040/content","hedla@qq.com"))
                        .version("1.0")
                        .build())
                //分组名称
                .groupName("default")
                .select()
                //这里指定Controller扫描包路径
                .apis(RequestHandlerSelectors.basePackage("com.hedl.classroom.controller"))
                //.apis(RequestHandlerSelectors.basePackage(null))
                .paths(PathSelectors.any())
                .build();
        return docket;
    }

 */
}
